/**
 * Created by Amaris on 2016/10/10.
 */

managerApp.factory("onlineFactory", ['$http', function ($http) {
    var online = {};

    online.getCount = function (params, callback) {
        angularHttpGet($http, "/smtool_project/api/online/getCount", params, function (response) {
            callback(response);
        })
    };

    online.createCount = function (params, callback) {
        angularHttpPost($http, "/smtool_project/api/online/createCount", params, function (response) {
            callback(response);
        })
    };

    online.editCount = function (params, callback) {
        angularHttpPost($http, "/smtool_project/api/online/editCount", params, function (response) {
            callback(response);
        })
    };

    return online;
}]);
